
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
scarab-scss
Advanced tools
Sass utility framework for rapid stylesheet development
Documentation source is available in the docs/
folder.
To get started, add Scarab as a dev-dependency in your project via npm:
npm install scarab-scss --save-dev
Import scarab-scss
at the beginning of your stylesheet:
@import 'path/to/node_modules/scarab-scss/scarab';
Scarab is a utility framework, not a UI library. Importing scarab-scss
outputs zero CSS.
Importing scarab.scss
creates a new global variable, $SCARAB
in your Sass project. This is where your stylesheet configuration is stored.
To configure variables in your stylesheet, use the set()
mixin:
/// Set a new value for a key in $SCARAB
///
/// @access public
/// @group helpers
///
/// @require {variable} SCARAB
///
/// @param {arglist} $definition - Definition of the new value
/**
*
* set() takes an arglist, $definition as its parameters.
* The last argument in $definition should be the value that you want to set.
* Preceding that is a chain of keys in the $SCARAB variable where the value should be set.
*
*/
// Example:
// Configure stylesheet breakpoints
@include set(breakpoints, (
small: 600px,
medium: 900px,
large: 1300px
));
// Replace the existing value of the 'medium' breakpoint
@include set(breakpoints, medium, 1024px);
// Define a new breakpoint, 'huge', and set its value to 1600px
@include set(breakpoints, huge, 1600px);
For more examples of configuration, have a look at the #configuration
section in the docs.
Declare responsive properties with the responsive()
mixin. This allows you to easily manage the appearance of responsive components, and reduce media query clutter in your stylesheet.
// Example
.button {
@include responsive((padding-left, padding-right), (
base: 14px,
medium: 18px,
large: 22px
));
}
// Output
.button {
padding-left: 14px;
padding-right: 14px;
}
// 'medium' breakpoint
@media (min-width: 1024px) {
.button {
padding-left: 18px;
padding-right: 18px;
}
}
// 'large' breakpoint
@media (min-width: 1300px) {
.button {
padding-left: 22px;
padding-right: 22px;
}
}
Scarab provides a bunch of helper mixins like type-scale()
and query()
.
The baseline-grid()
and element-overlay()
mixins overlay visual guides over the DOM. These help when debugging layout and trying to achieve a consistent vertical rythmn.
FAQs
Sass utility framework for rapid stylesheet development
The npm package scarab-scss receives a total of 40 weekly downloads. As such, scarab-scss popularity was classified as not popular.
We found that scarab-scss demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.